package com.hyh.admin.recommend;


import com.hyh.ad.common.core.domain.model.SysUser;
import com.hyh.admin.domain.resources.Resources;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/*
 * 用户画布的信息存储
 * 用户信息
 * 课程评分信息
 * 收藏课程信息
 * 浏览课程信息
 * 课程推荐信息
 */
@Data
public class UserProfile implements Serializable {
    /*
     * 用户信息
     */
    private SysUser user;
    /*
     * 课程评分信息
     */
    private Map<String, Double>  ratedCourses;
    /*
     * 收藏课程信息
     */
    private List<String> likedCourses;

    /*
     * 浏览课程信息
     */
    private List<String> browsedCourses;

    /*
     * 课程推荐信息
     */
    private List<String> recommendedCourses;

    //构造函数
    public UserProfile(SysUser user, Map<String, Double> ratedCourses, List<String> likedCourses, List<String> browsedCourses, List<String> recommendedCourses) {
        this.user = user;
        this.ratedCourses = ratedCourses;
        this.likedCourses = likedCourses;
        this.browsedCourses = browsedCourses;
        this.recommendedCourses = recommendedCourses;
    }

    public UserProfile() {
    }
}
